// 辅助函数封装

// 1.登录注册的表单值的格式转换
const changeFormatStr = dataObj => {
    const dataArr = []
    for (const key in dataObj) {
        dataArr.push(`${key}=${dataObj[key]}`)
    }
    const dataStr = dataArr.join('&')

    return dataStr
}